
#include "thread_pool.hpp"
#include <iostream>
int main(){
    ThreadPool &tp = ThreadPool::getInstance(4);
    int cnt = 0;
    auto fut = tp.submit([&cnt]{
        for(int i = 0; i < 100; ++i){
            cnt++;
        }
    });
    fut.get();
    std::cout << cnt << "\n";
    return 0;
}